package org.jeecg.modules.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 商户银行账户
 * @Author: yfkj
 * @Date:   2023-02-07
 * @Version: V1.0
 */
@ApiModel(value="caishui_business_bank对象", description="商户银行账户")
@Data
@TableName("caishui_business_bank")
public class CaishuiBusinessBank implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;

	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;

	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    /**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private Long tenantId;

	/**商户ID*/
    @ApiModelProperty(value = "商户ID")
    private String businessId;

	/**记账子单元编号*/
	@Excel(name = "记账子单元编号", width = 15)
    @ApiModelProperty(value = "记账子单元编号")
    private String subAccountId;

	/**户名*/
	@Excel(name = "户名", width = 15)
    @ApiModelProperty(value = "户名")
    private String accountName;

	/**主账号（服务公司账号）*/
	@Excel(name = "主账号（服务公司账号）", width = 15)
    @ApiModelProperty(value = "主账号（服务公司账号）")
    private String mainAccount;

	/**打款户名*/
	@Excel(name = "打款户名", width = 15)
    @ApiModelProperty(value = "打款户名")
    private String name;

	/**打款账户（15位主账户+子单元）*/
	@Excel(name = "打款账户（15位主账户+子单元）", width = 15)
    @ApiModelProperty(value = "打款账户（15位主账户+子单元）")
    private String account;

	/**服务公司*/
    @ApiModelProperty(value = "服务公司")
    @Dict(dictTable = "caishui_service_company", dicCode = "id", dicText = "name")
    private String serviceCompanyId;


	/**打款开户行*/
	@Excel(name = "打款开户行", width = 15)
    @ApiModelProperty(value = "打款开户行")
    private String bankName;

	/**一档税率*/
	@Excel(name = "一档税率", width = 15)
    @ApiModelProperty(value = "一档税率")
    private Double taxRate;

	/**二挡税率*/
	@Excel(name = "二挡税率", width = 15)
    @ApiModelProperty(value = "二挡税率")
    private Double taxRateTwo;

	/**税率类型：1-外加，2-内扣*/
    @ApiModelProperty(value = "税率类型：1-外加，2-内扣")
    private Integer taxRateType;

	/**余额*/
	@Excel(name = "余额", width = 15)
    @ApiModelProperty(value = "余额")
    private java.math.BigDecimal balance;

	/**支付宝PID*/
    @ApiModelProperty(value = "支付宝PID")
    private String zfbPid;

	/**代发类型：1-非中转联动代发，2-中转联动代发B端公司，3-中转联动代发中转公司*/
    @ApiModelProperty(value = "代发类型：1-非中转联动代发，2-中转联动代发B端公司，3-中转联动代发中转公司")
    private Integer issuingType;

    /**类型：1-用工子账户，2-税费子账户*/
    @ApiModelProperty(value = "类型")
    private Integer type;

}
